/** @jsxImportSource @emotion/react */
import * as React from "react";
import {  OriginalViewProps,  } from "../../common/base";
import { EntranceSetup,} from "./orcBase";
import { createItem,  } from "../../common/eHelper";
import {useRecordListSubr} from "../../hook/useRecordListSub";
import {DeviceSurvey} from "../../elevator/editor";
import {ConclusionContImp, } from "./editorJJ";
import {config证书概要, } from "./editorCert";


const recordPrintList =[
  createItem('Entrance', <EntranceSetup/>),
  createItem('Conclusion', <ConclusionContImp label={'检验结论报告-下结论'}/>),
  createItem('CertificateSummary', <DeviceSurvey config={config证书概要} label={'进口特种设备安全性能监督检验证书'}/>),
  createItem('_Controller',  <></>),
];

export const OriginalView=
  React.forwardRef((
    { action: modAction,  verId, repId='', rep}
    :OriginalViewProps, ref
  ) => {
    const {list}=useRecordListSubr(ref,rep,recordPrintList,modAction,verId);
    return <React.Fragment>
      {list}
    </React.Fragment>;
  } );
